﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MG.HomeO2O.Model;
namespace MG.HomeO2O.DAL
{
    public class ServiceporDAL
    {
        EntityOP entity = new EntityOP();
        /// <summary>
        /// 显示内容信息
        /// </summary>
        /// <returns></returns>
        public List<Servicepor> ShowDetail()
        {
            return entity.Servicepor.ToList();
        }
        public List<Servicepor_Mate>listshow()
        {
            return entity.Servicepor_Mate.SqlQuery("select * from Servicepor_Mate where Servicepor_Id=1").ToList();
        }
        public List<Servicepor_Mate> listshow1()
        {
            return entity.Servicepor_Mate.SqlQuery("select * from Servicepor_Mate where Servicepor_Id=2").ToList();
        }
    }
}
